﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using OgilvyOne.BLL;
using OgilvyOne.Model;
using System.Collections;

namespace OgilvyOne.UKNow.BLL
{
    public class ArticleBLL :CmsArticleBll
    {
        public int LanguageID { get; set; }
        public ArticleBLL(int langID)
        {
            this.LanguageID = langID;
        }
        /// <summary>
        /// 根据应用类型获取数据 
        /// </summary>
        /// <param name="appType">应用类型：1为 uknow应用 2为赞助商应用</param>
        /// <returns>返回Ilist</returns>
        public IList GetArticleByAppType(string appType)
        {
            int columnID = 0;
            if (this.LanguageID == 2052)//中文
            {
                switch (appType)
                {
                    case "1": //uknow应用
                        columnID = 550;
                        break;
                    case "2"://赞助商应用
                        columnID = 551;
                        break;
                }
            }
            else  //英文
            {
                switch (appType)
                {
                    case "1": //uknow应用
                        columnID = 553;
                        break;
                    case "2"://赞助商应用
                        columnID = 554;
                        break;
                }

            }
            return GetColumnAllPubArticleList(columnID);
        }
    }
}
